<template>
  <section class="profile-service-info">
    <section class="top">
      <div class="order" @click="handleSkipOrder">
        <svg class="svg">
          <use xlink:href="#order" />
        </svg>
        <span>我的订单</span>
        <span class="arrow"></span>
      </div>
      <div class="mall" @click="handleSkipMall">
        <svg class="svg">
          <use xlink:href="#mall" />
        </svg>
        <span>积分商城</span>
        <span class="arrow"></span>
      </div>
      <div class="member" @click="handleSkipVipcard">
        <svg class="svg">
          <use xlink:href="#member" />
        </svg>
        <span>饿了么会员卡</span>
        <span class="arrow"></span>
      </div>
    </section>
    <p class="spacing"></p>
    <section class="bottom">
      <div class="service" @click="handleSkipService">
        <svg class="svg">
          <use xlink:href="#service" />
        </svg>
        <span>服务中心</span>
        <span class="arrow"></span>
      </div>
      <div class="download" @click="handleSkipDownload">
        <svg class="svg">
          <use xlink:href="#elem" />
        </svg>
        <span>下载饿了么APP</span>
        <span class="arrow"></span>
      </div>
    </section>
  </section>
</template>

<script>
export default {
  methods: {
    handleSkipOrder() {
      this.$router.push("/order");
    },
    handleSkipMall() {
      location.href =
        "https://activity.m.duiba.com.cn/autoLogin/notlogin#/chome/index";
    },
    handleSkipVipcard() {
      this.$router.push("/vipcard");
    },
    handleSkipService() {
      this.$router.push("/service");
    },
    handleSkipDownload() {
      this.$router.push("/download");
    },
  },
};
</script>
<style lang="less" scoped>
@import url("assets/css/mixin");
.profile-service-info {
  margin: 10px 0;
  background-color: #fff;
  color: #333333;
  .top,
  .bottom {
    padding-left: 30px;
  }
  div {
    padding: 10px;
    border-bottom: 2px solid #fafafa;
  }
  .arrow {
    position: relative;
    top: 5px;
    .right-arrow();
  }
  .order,
  .mall,
  .member,
  .service,
  .download {
    display: flex;
    justify-content: space-between;
    position: relative;
  }
  .svg {
    position: absolute;
    top: 50%;
    left: -15px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
  }
  .spacing {
    height: 10px;
    background-color: #f5f5f5;
  }
}
</style>